/**
 * Copyright (c) 2010 BullionXpress.com,
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 */
package com.bullionxpress.client.application;

import com.bullionxpress.client.view.ChartView;
import com.bullionxpress.shared.model.Account;
import com.bullionxpress.client.view.ScrollBarPanel;
import com.bullionxpress.shared.model.Instrument;
import com.bullionxpress.shared.model.User;
import com.bullionxpress.shared.service.AccountDatabase;
import com.bullionxpress.shared.service.AdminService;
import com.bullionxpress.shared.service.MarketService;
import com.bullionxpress.shared.service.ChangePasswordService;
import com.bullionxpress.shared.service.ChartService;
import com.bullionxpress.shared.service.CloseAccountService;
import com.bullionxpress.shared.service.ForgotPasswordService;
import com.bullionxpress.shared.service.InstrumentDatabase;
import com.bullionxpress.shared.service.LoginService;
import com.bullionxpress.shared.service.OrderService;
import com.bullionxpress.shared.service.PositionService;
import com.bullionxpress.shared.service.QuoteService;
import com.bullionxpress.shared.service.TransactionService;
import com.bullionxpress.shared.service.UserDatabase;
import java.util.HashMap;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 *
 * @author BullionXpress.com
 */
public class ClientGlobals {
    public static User user = null;

    public static boolean local = false;
    public static String currency = "CAD";
    public static Instrument instrument = new Instrument("GOLD");
    public static Lock lock = new ReentrantLock();
    public static HashMap registry = new HashMap();
    public static ScrollBarPanel scrollBarPanel = null;
    public static Account account = null;

    public static ClientManager cm = null;
    public static ChartView chartView = null;

    public static AccountDatabase accountDatabase = null;
    public static InstrumentDatabase instrumentDatabase = null;
    public static ChartService chartService = null;
    public static OrderService orderService = null;
    public static PositionService positionService = null;
    public static TransactionService transactionService = null;
    public static QuoteService quoteService = null;
    public static LoginService loginService = null;
    public static CloseAccountService closeAccountService = null;
    public static ForgotPasswordService forgotPasswordService = null;
    public static ChangePasswordService changePasswordService = null;
    public static MarketService marketService = null;
    public static UserDatabase userDatabase = null;
    public static AdminService adminService = null;

}
